package com.cwvs.services;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cwvs.dao.AppSmsDao;
import com.cwvs.models.ResultInfo;

/**
 * 用户SERVICE
 * 
 */
@Service
public class AppSmsService {

	@Resource
	private AppSmsDao appSmsDao;

	/**
	 * 短信新增
	 */
	public ResultInfo saveAppSms(Map<String, Object> o) {
		return appSmsDao.saveAppSms(o);
	}

	/***
	 * 通过token获取短信信息
	 * 
	 * @param token
	 * @return
	 */
	public ResultInfo getAppSmsByToken(String token) {
		return appSmsDao.getAppSmsByToken(token);
	}
}
